class CreateUsuariosAdministradors < ActiveRecord::Migration
  def self.up
    create_table :administradores do |t|
      t.string :login, :unique => true, :null => false
      t.string :senha, :null => false
      t.string :email, :null => false
      t.string :nome, :null => false
    end
    
    Usuarios::Administrador.create(:login => "admin", :senha => "nimdaadmin", :email => "admin.sobpressao@gmail.com", :nome => "Administrador")
  end

  def self.down
    drop_table :administradores
  end
end
